import request from '@/utils/request'

// 查询AI配置列表
export function listAiconfig(query) {
  return request({
    url: '/khpx/aiconfig/list',
    method: 'get',
    params: query
  })
}

// 查询AI配置详细
export function getAiconfig(id) {
  return request({
    url: '/khpx/aiconfig/' + id,
    method: 'get'
  })
}

// 新增AI配置
export function addAiconfig(data) {
  return request({
    url: '/khpx/aiconfig',
    method: 'post',
    data: data
  })
}

// 修改AI配置
export function updateAiconfig(data) {
  return request({
    url: '/khpx/aiconfig',
    method: 'put',
    data: data
  })
}

// 删除AI配置
export function delAiconfig(id) {
  return request({
    url: '/khpx/aiconfig/' + id,
    method: 'delete'
  })
}
